home *** CD-ROM | disk | FTP | other *** search
- class MiniStone extends SideScroller.StaticObject
- {
- var bObjectBlock;
- var bObjectSpecial;
- function MiniStone(__mcRef, __oLayer)
- {
- super(__mcRef,__oLayer);
- this.bObjectBlock = false;
- this.bObjectSpecial = true;
- this.ParentLayer.doAddListener(this);
- }
- function onHitSpecial(__oRef)
- {
- this.setState("Out");
- this.doLockState();
- }
- function doDestroy()
- {
- this.ParentLayer.doRemoveListener(this);
- super.doDestroy();
- }
- function doOut()
- {
- if(this.isStateComplete())
- {
- this.doDestroy();
- }
- }
- }
-